Conversation
As per the NNPot implementation
src/gromacs/applied_forces/metatomic/metatomic_forceprovider.cpp
Outdated
Show resolved
Hide resolved
Luthaf
reviewed
Jan 30, 2026
src/gromacs/applied_forces/metatomic/metatomic_forceprovider.cpp
Outdated
Show resolved
Hide resolved
src/gromacs/applied_forces/metatomic/metatomic_forceprovider.cpp
Outdated
Show resolved
Hide resolved
src/gromacs/applied_forces/metatomic/metatomic_forceprovider.cpp
Outdated
Show resolved
Hide resolved
src/gromacs/applied_forces/metatomic/metatomic_forceprovider.cpp
Outdated
Show resolved
Hide resolved
Luthaf
reviewed
Feb 2, 2026
src/gromacs/applied_forces/metatomic/metatomic_forceprovider.cpp
Outdated
Show resolved
Hide resolved
| real* data_ptr = reinterpret_cast<real*>(positions_.data()); | ||
| const size_t n_reals = static_cast<size_t>(n_atoms) * 3; | ||
| mpiComm_.sumReduce(gmx::ArrayRef<real>(data_ptr, data_ptr + n_reals)); | ||
| mpiComm_.sumReduce(3 * numInput, positions_.data()->as_vec()); |
Member
There was a problem hiding this comment.
So sumReduce is used to do a gather here, correct? There is no gather primitive instead? (I guess it does not matter since this will go away)
Member
Author
There was a problem hiding this comment.
Not from a quick reading but also yeah it's going the way of the dodo anyway
Luthaf
approved these changes
Feb 3, 2026
Member
Luthaf
left a comment
There was a problem hiding this comment.
This is in a good state, let's merge and keep improving it in the next PR!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No
vesininvolved, so should be good for upstream too. Also got faster... and takes the cutoff from the model, so win-win.So 2x the first
vesinversion.Same design as #1.
For instructions on optimal usage / reproduction consider details here.